package org.onion.pattern.event.consumer;


import org.onion.pattern.event.exception.EventConsumeException;

/**
 * 事件消费处理器
 */
public interface EventConsumeHandler {

    void handle(ExternalEventInfo eventInfo, Object metadata) throws EventConsumeException;

    /**
     * 消费组对象
     */
    Object consumerGroup();

    /**
     * 消费组类型
     */
    Class<?> consumerGroupClass();

}
